#include "Teacher.h"

int Teacher::getType()
{
	return TEACHER;
}
Teacher::Teacher(char* name, Date birthday, int id, int classNum, Subject subject1, Subject subject2) : People(name, birthday, id)
{
	setClass(classNum);
	setSubject(subject1);
	setSubject2(subject2);
}

Teacher::~Teacher(void)
{
}

void Teacher::PrintInfo()
{
	People::PrintInfo();
	cout << "Class Num: " << classNum << endl;
	cout << "Subject: " << subject << endl;
	cout << "Subject 2: " << subject2 << endl;
}
void Teacher::PrintInfo(ostream &out)
{
	People::PrintInfo(out);
	out << "Class Num: " << classNum << endl;
	out << "Subject: " << subject << endl;
	out << "Subject 2: " << subject2 << endl;
}
int Teacher::getClass()
{
	return classNum;
}
Subject Teacher::getSubject()
{
	return subject;
}
Subject Teacher::getSubject2()
{
	return subject2;
}

void Teacher::setClass(int classNum)
{
	this->classNum  = classNum;
}
void Teacher::setSubject(Subject subject)
{
	this->subject = subject;
}
void Teacher::setSubject2(Subject subject)
{
	this->subject2 = subject;
}

void* Teacher::Clone()
{
	return new Teacher(*this);
}